import { PgTab } from "../../plugins/index";
interface Iprops {
  curIdx?: number;
}

function Tab(props: Iprops): HTMLElement {
  //   return <div></div>;
  return new PgTab({
    currentIndex: props.curIdx,
    data: [
      {
        navItem: "导航一",
        pageItem: "页面1",
      },
      {
        navItem: "导航二",
        pageItem: "页面2",
      },
    ],
    callBack(newIdx) {
      console.log(newIdx);
    },
  }).render();
}

export default Tab;
